#ifndef ITEM_H
#define ITEM_H

#include <boost/serialization/base_object.hpp>
#include <boost/serialization/vector.hpp>

class Item{
public:
	Item();
	void setId(std::string);
	void setName(std::string);
	void setPicName(std::string);
	void setDescription(std::string);
	void setX(int);
	void setY(int);
	std::string getId();
	std::string getName();
	std::string getDescription();
	std::string getPicName();
	int getX();
	int getY();


private:
       friend class boost::serialization::access;
       template <class Archive>
       void serialize(Archive & ar, const unsigned int version){
	       ar & id_;
	       ar & name_;
	       ar & description_;
	       ar & picName_;
	       ar & x_;
	       ar & y_;

       }
       std::string id_;
       std::string name_;
       std::string description_;
       std::string picName_;
       int x_;
       int y_;
};

#endif
